package org.dbpt.performance;

/**
 * Base interface for all nodes within configuration tree.
 * @author Sergey Grigorchuk (sergey.grigorchuk@gmail.com)
 *
 */
public interface DBPTItem {
	
	/**
	 * The method is called before starting tests to perform preparation actions.
	 * E.g. SQL command should prepare statement.
	 */
	void prepare();
	
	/**
	 * This method is called to perform main test action. 
	 */
	void doIteration();
	
	/**
	 * This method is called when test is done to clean necessary resources.
	 * E.g. SQL command should close prepared statement.
	 */
	void cleanup();
}
